﻿using UnityEngine;
using System.Collections;

public class test : MonoBehaviour {
    public static int count1 = 0;
    
	// Use this for initialization

	void Start () {
        
	}
	
	// Update is called once per frame
	void Update () {
        if (Input.GetMouseButton(0))
        {
            count1++;
            Debug.Log(count1);
            test1.count2 = count1;
        }
        if (Input.GetMouseButton(1))
        {
            Debug.Log(test1.count2);
            GameObject abc = GameObject.FindWithTag("Player");
            
        }
        
	}
}
